﻿Ext.define('app.system.document_type.Index',
{
    extend: 'Ext.grid.Panel',
    border: true,
    title: '文档类型',
    viewConfig: {
        enableTextSelection: true //可以复制单元格文字
    },
    multiColumnSort: true,
    forceFit: true,
    initComponent: function ()
    {
        var me = this;
        me.store = Ext.create("app.ux.PrmStore", { url: '/api/services/app/documentType/GetAll' });
        me.callParent(arguments);
    },
    columns: [
        { header: "是否可用", dataIndex: 'isEnabled' },
        { header: "类别名称", dataIndex: 'name' },
        { header: "描述", dataIndex: 'description' },
        { header: "排序值", dataIndex: 'orderNo' }
    ]
});
